#ifndef LOGINFORM_H
#define LOGINFORM_H


#include "moveableframelessdialog.h"

#include <QWidget>
#include <QDialog>
namespace Ui {
class LoginForm;
}

class LoginForm :public MoveableFramelessDialgo
{
    Q_OBJECT

public:
    explicit LoginForm(QWidget *parent = 0);
    ~LoginForm();
    QString getLoginname();
    QString getPassword();
    void setNetarg(QString ip,int port);
    QString getip();
    int getport();
protected:

      QWidget*getDragnWidget();
private slots:
    /**
     * @brief 登录按钮点击
     */
    void doLoginButClick();
    void doClose();
    void doSetWS();
    void doRegUser();
private:
    Ui::LoginForm *ui;
    QString m_ip;
    int m_port;
};

#endif // LOGINFORM_H
